package com.example.feignapi.user;

import com.example.common.util.R;
import com.example.model.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "leadnews-user", path = "/api/v1/")
public interface UserClient {
    @GetMapping(value = "/user/{userId}")
    User getUserByUserId(@PathVariable("userId") Integer userId);
}
